Ext.define('DCApp.view.thesis.Detail', {
	extend: 'DCApp.view.Detail',
    alias: 'widget.thesisdetail',
    
    bind: {
        title: '论文 - 【{theObj.thesisId}】'
    },
    
    componentCls: 'thesis-detail',
    bodyPadding: 0,
    
    controller: 'detail',
    
    
    afterRender: function(ct, position) {
    	this.callParent();
    },
    items: [
    	{
    		listeners: {
				render: function(p) {
					p = p.getEl();
					var me = this.up();
					me.h0 = p.getHeight();
			    	p.on('scroll', function(e, t) {
			    		me.onscroll(t.scrollTop,t.clientHeight);
			    	}, p);
			  	}
			},
    		title: 'Panel 0',
        	flex: 2,
        	frame: false,
        	xtype: 'container',
        	layout: 'anchor',
        	style: {
            	overflow: 'auto'
        	},
        	items: [{        		
        		title : '论文信息',
				margin : '0 0 10 0',
				cls : 'nav_pos',
				reference : 'form',
				bodyPadding : 10,
				fieldDefaults : {
					labelAlign : 'right',
					labelWidth : 100,
					padding : 3
				},
				defaults : {
					anchor : '100%'
				},
				xtype: 'form',
				items: [
					{
                        xtype: 'container',
                        layout: 'hbox',
                        combineErrors: true,
                        defaultType: 'textfield',
                        items:[
//                			{
//                        		flex: 1,
//		                        xtype: 'displayfield',
//		                        fieldLabel: '论文专著编号',
//		                        allowBlank: false,
//		                        bind: '{theObj.thesisId}',
//		                        publishes: ['value']
//		                    },
		                    {
		                    	flex: 1,
		                        xtype: 'textfield',
		                        fieldLabel: '论文专著名称',
		                        allowBlank: false,
		                        bind: '{theObj.thesisName}',
		                        publishes: ['value']
		                    },
		                    	{
                        		flex: 1,
		                        xtype: 'textfield',
		                        fieldLabel: '是否删除(Y/N)',
		                        allowBlank: false,
		                        bind: '{theObj.thesisId}',
		                        publishes: ['value']
		                    }	                        
                		]
            		},
            		{
                        xtype: 'container',
                        layout: 'hbox',
                        combineErrors: true,
                        defaultType: 'textfield',
                        items:[
		                    {
		                    	flex: 1,
		                        xtype: 'textfield',
		                        fieldLabel: '论文重复ID(>6000)',
		                        allowBlank: false,
		                        bind: '{theObj.thesisName}',
		                        publishes: ['value']
		                    },
		                    {
                        		flex: 1,
		                        xtype: 'textfield',
		                        fieldLabel: '论文首页页码',
		                        allowBlank: false,
		                        bind: '{theObj.thesisId}',
		                        publishes: ['value']
		                    }	                        
                		]
            		},
            		{
                        xtype: 'container',
                        layout: 'hbox',
                        combineErrors: true,
                        defaultType: 'textfield',
                        items:[
		                    {
		                    	flex: 1,
		                        xtype: 'textfield',
		                        fieldLabel: '期刊章节[专著获奖情况]',
		                        allowBlank: false,
		                        bind: '{theObj.thesisName}',
		                        publishes: ['value']
		                    },
		                    {
                        		flex: 1,
		                        xtype: 'textfield',
		                        fieldLabel: '论文专著类型',
		                        allowBlank: false,
		                        bind: '{theObj.thesisId}',
		                        publishes: ['value']
		                    }
                		]
            		},
            		{
                        xtype: 'container',
                        layout: 'hbox',
                        combineErrors: true,
                        defaultType: 'textfield',
                        items:[
		                    {
		                    	flex: 1,
		                        xtype: 'textfield',
		                        fieldLabel: '格式类型',
		                        allowBlank: false,
		                        bind: '{theObj.thesisName}',
		                        publishes: ['value']
		                    },
		                    {
                        		flex: 1,
		                        xtype: 'textfield',
		                        fieldLabel: '作者',
		                        allowBlank: false,
		                        bind: '{theObj.thesisId}',
		                        publishes: ['value']
		                    }		                        
                		]
            		},
            		{
                        xtype: 'container',
                        layout: 'hbox',
                        combineErrors: true,
                        defaultType: 'textfield',
                        items:[
		                    {
		                    	flex: 1,
		                        xtype: 'textfield',
		                        fieldLabel: '第一作者',
		                        allowBlank: false,
		                        bind: '{theObj.thesisName}',
		                        publishes: ['value']
		                    },
		                    {
                        		flex: 1,
		                        xtype: 'textfield',
		                        fieldLabel: '来源',
		                        allowBlank: false,
		                        bind: '{theObj.thesisId}',
		                        publishes: ['value']
		                    }
                		]
            		},
            		{
                        xtype: 'container',
                        layout: 'hbox',
                        combineErrors: true,
                        defaultType: 'textfield',
                        items:[
		                    {
		                    	flex: 1,
		                        xtype: 'textfield',
		                        fieldLabel: '出版社',
		                        allowBlank: false,
		                        bind: '{theObj.thesisName}',
		                        publishes: ['value']
		                    },
		                    {
                        		flex: 1,
		                        xtype: 'textfield',
		                        fieldLabel: '提供者',
		                        allowBlank: false,
		                        bind: '{theObj.thesisId}',
		                        publishes: ['value']
		                    }
                		]
            		},
            		{
                        xtype: 'container',
                        layout: 'hbox',
                        combineErrors: true,
                        defaultType: 'textfield',
                        items:[
		                    {
		                    	flex: 1,
		                        xtype: 'textfield',
		                        fieldLabel: '发表时间',
		                        allowBlank: false,
		                        bind: '{theObj.thesisId}',
		                        publishes: ['value']
		                    },
		                    {
                        		flex: 1,
		                        xtype: 'textfield',
		                        fieldLabel: '加工方式',
		                        allowBlank: false,
		                        bind: '{theObj.thesisId}',
		                        publishes: ['value']
		                    }
                		]
            		},
            		{
                        xtype: 'container',
                        layout: 'hbox',
                        combineErrors: true,
                        defaultType: 'textfield',
                        items:[
		                    {
		                    	flex: 1,
		                        xtype: 'textfield',
		                        fieldLabel: '字数',
		                        allowBlank: false,
		                        bind: '{theObj.thesisId}',
		                        publishes: ['value']
		                    },
		                    {
                        		flex: 1,
		                        xtype: 'textfield',
		                        fieldLabel: '页数',
		                        allowBlank: false,
		                        bind: '{theObj.thesisId}',
		                        publishes: ['value']
		                    }
                		]
            		},
            		{
                        xtype: 'container',
                        layout: 'hbox',
                        combineErrors: true,
                        defaultType: 'textfield',
                        items:[
		                    {
		                    	flex: 1,
		                        xtype: 'textfield',
		                        fieldLabel: '登记人',
		                        allowBlank: false,
		                        bind: '{theObj.thesisId}',
		                        publishes: ['value']
		                    },
		                    {
                        		flex: 1,
		                        xtype: 'textfield',
		                        fieldLabel: '登记时间',
		                        allowBlank: false,
		                        bind: '{theObj.thesisId}',
		                        publishes: ['value']
		                    }
                		]
            		},
            		{
                        xtype: 'container',
                        layout: 'hbox',
                        combineErrors: true,
                        defaultType: 'textfield',
                        items:[
		                    {
		                    	flex: 1,
		                        xtype: 'textfield',
		                        fieldLabel: '登记提交时间',
		                        allowBlank: false,
		                        bind: '{theObj.thesisId}',
		                        publishes: ['value']
		                    },
		                    {
                        		flex: 1,
		                        fieldLabel: '加工者',
		                        allowBlank: false,
		                        bind: '{theObj.thesisId}',
		                        publishes: ['value']
		                    }
                		]
            		},
            		{
                        xtype: 'container',
                        layout: 'hbox',
                        combineErrors: true,
                        defaultType: 'textfield',
                        items:[
		                    {
		                    	flex: 1,
		                        fieldLabel: '加工时间',
		                        allowBlank: false,
		                        bind: '{theObj.thesisId}',
		                        publishes: ['value']
		                    },
		                    {
                        		flex: 1,
		                        fieldLabel: '加工提交时间',
		                        allowBlank: false,
		                        bind: '{theObj.thesisId}',
		                        publishes: ['value']
		                    }
                		]
            		},
            		{
                        xtype: 'container',
                        layout: 'hbox',
                        combineErrors: true,
                        defaultType: 'textfield',
                        items:[
		                    {
		                    	flex: 1,
		                        fieldLabel: '校对者',
		                        allowBlank: false,
		                        bind: '{theObj.thesisId}',
		                        publishes: ['value']
		                    },
		                    {
                        		flex: 1,
		                        fieldLabel: '校对时间',
		                        allowBlank: false,
		                        bind: '{theObj.thesisId}',
		                        publishes: ['value']
		                    }
                		]
            		},
            		{
                        xtype: 'container',
                        layout: 'hbox',
                        combineErrors: true,
                        defaultType: 'textfield',
                        items:[
		                    {
		                    	flex: 1,
		                        fieldLabel: '校对提交时间',
		                        allowBlank: false,
		                        bind: '{theObj.thesisId}',
		                        publishes: ['value']
		                    },
		                    {
                        		flex: 1,
		                        fieldLabel: '确认者',
		                        allowBlank: false,
		                        bind: '{theObj.thesisId}',
		                        publishes: ['value']
		                    }
                		]
            		},
            		{
                        xtype: 'container',
                        layout: 'hbox',
                        combineErrors: true,
                        defaultType: 'textfield',
                        items:[
		                    {
		                    	flex: 1,
		                        fieldLabel: '确认时间',
		                        allowBlank: false,
		                        bind: '{theObj.thesisId}',
		                        publishes: ['value']
		                    },
		                    {
                        		flex: 1,
		                        fieldLabel: '确认结果',
		                        allowBlank: false,
		                        bind: '{theObj.thesisId}',
		                        publishes: ['value']
		                    }
                		]
            		},
            		{
                        xtype: 'container',
                        layout: 'hbox',
                        combineErrors: true,
                        defaultType: 'textfield',
                        items:[
		                    {
		                    	flex: 1,
		                        fieldLabel: '原稿退回时间',
		                        allowBlank: false,
		                        bind: '{theObj.thesisId}',
		                        publishes: ['value']
		                    },
		                    {
                        		flex: 1,
		                        fieldLabel: '退回的接收人',
		                        allowBlank: false,
		                        bind: '{theObj.thesisId}',
		                        publishes: ['value']
		                    }	                        
                		]
            		},
            		{
                        xtype: 'container',
                        layout: 'hbox',
                        combineErrors: true,
                        defaultType: 'textfield',
                        items:[
		                    {
		                    	flex: 1,
		                        fieldLabel: '语种',
		                        allowBlank: false,
		                        bind: '{theObj.thesisId}',
		                        publishes: ['value']
		                    },
		                    {
                        		flex: 1,
		                        fieldLabel: '翻译稿标志位',
		                        allowBlank: false,
		                        bind: '{theObj.thesisId}',
		                        publishes: ['value']
		                    }
                		]
            		},
            		{
                        xtype: 'container',
                        layout: 'hbox',
                        combineErrors: true,
                        defaultType: 'textfield',
                        items:[
		                    {
		                    	flex: 1,
		                        fieldLabel: 'PDF文件名',
		                        allowBlank: false,
		                        bind: '{theObj.thesisId}',
		                        publishes: ['value']
		                    },
		                    {
                        		flex: 1,
		                        fieldLabel: 'PDF索引文件名',
		                        allowBlank: false,
		                        bind: '{theObj.thesisId}',
		                        publishes: ['value']
		                    }
                		]
            		},
            		{
                        xtype: 'container',
                        layout: 'hbox',
                        combineErrors: true,
                        defaultType: 'textfield',
                        items:[
		                    {
		                    	flex: 1,
		                        fieldLabel: '论文分类',
		                        allowBlank: false,
		                        bind: '{theObj.thesisId}',
		                        publishes: ['value']
		                    },
		                    {
                        		flex: 1,
		                        fieldLabel: '论文标注',
		                        allowBlank: false,
		                        bind: '{theObj.thesisId}',
		                        publishes: ['value']
		                    }
                		]
            		},
            		{
                        xtype: 'container',
                        layout: 'hbox',
                        combineErrors: true,
                        defaultType: 'textfield',
                        items:[
		                    {
		                    	flex: 1,
		                        fieldLabel: '是否推荐',
		                        allowBlank: false,
		                        bind: '{theObj.thesisId}',
		                        publishes: ['value']
		                    },
		                    {
                        		flex: 1,
		                        fieldLabel: '时代',
		                        allowBlank: false,
		                        bind: '{theObj.thesisId}',
		                        publishes: ['value']
		                    }
                		]
            		},
            		{
                        xtype: 'container',
                        layout: 'hbox',
                        combineErrors: true,
                        defaultType: 'textfield',
                        items:[
		                    {
		                    	flex: 1,
		                        fieldLabel: '译校者及译校方式',
		                        allowBlank: false,
		                        bind: '{theObj.thesisId}',
		                        publishes: ['value']
		                    },
		                    {
                        		flex: 1,
		                        fieldLabel: '发表责任人著作方式',
		                        allowBlank: false,
		                        bind: '{theObj.thesisId}',
		                        publishes: ['value']
		                    }
                		]
            		},
            		{
                        xtype: 'container',
                        layout: 'hbox',
                        combineErrors: true,
                        defaultType: 'textfield',
                        items:[
		                    {
		                    	flex: 1,
		                        fieldLabel: '是否引用',
		                        allowBlank: false,
		                        bind: '{theObj.thesisId}',
		                        publishes: ['value']
		                    },
		                    {
                        		flex: 1,
		                        fieldLabel: '引用的资源',
		                        allowBlank: false,
		                        bind: '{theObj.thesisId}',
		                        publishes: ['value']
		                    }
                		]
            		},
	                {
	            		xtype: 'htmleditor',
	            		bind: '{theObj.content}',
	            		publishes: ['value'],
	            		fieldLabel: '论文专著内容'                    		                    		
	               	},
	                {
	            		xtype: 'htmleditor',
	            		bind: '{theObj.sourceRem}',
	            		publishes: ['value'],
	            		fieldLabel: '来源备注'                    		                    		
	               	}
				]
        	}]
        }
	]
});
